package com.aaa.controller;

import com.aaa.entity.ResultMsg;
import com.aaa.service.ActivtyServiceDao;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@RequestMapping("activty")
@RestController
public class ActivtyController {
    @Resource
    ActivtyServiceDao activtyServiceDao;
    @RequestMapping("find")
    public ResultMsg findactiv(){
        return ResultMsg.success(activtyServiceDao.findactiv());
    }
    @RequestMapping("update")
    public ResultMsg findactiv(Integer num,Integer aid){
        System.out.println(num+""+aid);
        return ResultMsg.success(activtyServiceDao.update(num,aid));
    }
}
